<template>
  <div>
    父组件sync --- {{ num }} --- {{ num2 }}
    <br>
    <Son
      :aa="num"
      :bb="num2"
      @update:aa="(val) => (num = val)"
      @update:bb="(val) => (num2 = val)"
    />
    <br>
    <Son :aa.sync="num" :bb.sync="num2" />
  </div>
</template>

<script>
import Son from './Son.vue'
export default {
  components: {
    Son
  },
  data() {
    return {
      num: 1000,
      num2: 2000
    }
  }
}
</script>

<style lang="scss" scoped></style>
